Skip to content

Conversation

kvanska
Copy link

@kvanska kvanska commented Jun 27, 2019

sometimes when using nuxt the elm.parentNode is null and vue-infinite-loading makes error

this is a simple fix to set scrollparent to window if elm.parentNode is null

#254

@PeachScript
Copy link
Owner

@kvanska thanks for your PR! I have no experience to use Nuxt.js, can we not get correct body element when using it?

@cain
Copy link

cain commented Mar 11, 2020

Hey @PeachScript any updates on this fix?

@Zac-Zajdel
Copy link

Thanks @kvanska this solves my issue.

For anyone out there not working on a Nuxt/Vue 2 repository, I would recommend https://vueuse.org/core/useInfiniteScroll/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants